module.exports = {
  pages: {
    index: {
      entry: "src/entrys/Index/index.ts",
      filename: "index.html",
      title: "首页",
    },
    appStackPage: {
      entry: "src/entrys/AppStackPage/index.ts",
      filename: "appStackPage.html",
      title: "vue3 单页面应用导航",
    },
  },
  css: {
    // 开启CSS module
    // modules: true,
    loaderOptions: {
      sass: {
        prependData: `@import "./src/styles/index.scss";`,
      },
    },
  },
  configureWebpack: {
    resolve: {
      extensions: [".js", ".vue", ".json", ".ts", ".tsx"],
    },
  },
  devServer: {
    port: 8080,
  },
};
